
<!--  start product-table ..................................................................................... -->
				<form id="mainform" action="" method="post">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-repeat line-left"><a>ID</a></th>
					<th class="table-header-repeat line-left"><a>Tên lớp</a></th>
					<th class="table-header-repeat line-left"><a>Họ tên học viên</a></th>
					<th class="table-header-repeat line-left"><a>Năm sinh</a></th>
					<th class="table-header-repeat line-left"><a>Ngày thi</a></th>
					<th class="table-header-repeat line-left"><a>Điểm</a></th>
					<th class="table-header-repeat line-left"><a>Kết quả</a></th>
					<th class="table-header-options line-left"><a>Tùy chọn</a></th>
				</tr>
				
				
<?php
		$diemthiMapper = Data_Model_DiemThiMapper::getInstance();
		
		$danhsach = $this->danhsach;
		$chitiets = $danhsach->getChitietkhoahoc();
		$lophoc = $danhsach->getLophoc();
		$kythi = $danhsach->getKythi();
		$ngaythi = $kythi->getNgaythi();
		foreach($chitiets as $chitiet)
		{
		$hocvien = $chitiet->getHocvien();
		$id = $hocvien->getId();
		$tenlop = $lophoc->getTenlop();
		$tenhocvien = $hocvien->getTenhocvien();
		$namsinh = $hocvien->getNamsinh();
		
		$diemthi = $diemthiMapper->checkByMahv($danhsach->getId(),$id);
		if(!($diemthi))
		{

		$linkEdit = $this->baseUrl('/admin/hocvien/capnhat/id/'. $id);
		$linkDelete = $this->baseUrl('/admin/hocvien/xoa/id/'. $id);
?>
				<tr>
					<td><?php echo $id?></td>
					<td><?php echo $tenlop?></td>
					<td><?php echo $tenhocvien?></td>
					<td><?php echo $namsinh?></td>
					<td><?php echo $ngaythi?></td>
					<td><?php echo $this->formText('diem'.$id,null,array('size'=>'2px'));?></td>
					<td></td>
					<td class="options-width">
					<a href="<?php echo $linkEdit?>" title="Edit" class="icon-1 info-tooltip"></a>
					<a href="<?php echo $linkDelete?>" title="Edit" class="icon-2 info-tooltip"></a>
					</td>
				</tr>
<?php }

		}
?>
			</table>
			<div><?php echo $this->formSubmit('submit','Nhập điểm');?></div>
				<!--  end product-table................................... -->
				</form>